consolidated client and server to peer