got error reporting working.