error reporting tweaks