remove debug output
put calibration into a separate try/catch block