mod to update script to perform hard reset each time