added helpful messages for some error situations