added error reporter