cleanup + prep for pause function