added a z calibration script