error reporting improved