add logging to pause and resume