finish homing script