more error checks - 'a' to 'd' complete

3 files changed