airbrake error checking added