more refactoring to the peerConnectionImpl class