errors.ErrorReporter added and used while scan