making a p2p system