enchanced error reporting