added a killswitch to reset