fleshing out of peer connection class