pause and resume now works