added p2p and messaging to peer