added changeMode and deferChangeMode methods to connection