add peer2peer and multi master-client