modify PeerWrapper