ADDED: p2p handshake and ping