better error messages
minor