reduced verbosity, made error message more descriptive