refactor skeleton calibration out into another module