preliminary reset script