slight change to error reporting