peer manager coding