first version of the peer manager