tweak error reporting