add pause() and resume() to connection #129