add p2p feature on server side