extract peer management from daemon