tweaking error reporting