z endstop rework (+MasterCam)