adapted for new spindle homing