adding a freezing script. Minor cleanup