minor cleanup
cleanup…. lets rearrange the stuff
integrating pause and resume throughout