more work on the handshaking process