minor refactoring
callback interface in ErrorReporter