turning on error reporting