cleanup error reporting a bit