working on handshaking to peers