adds error reporter