move daemon spawning code into NetworkProxy class