change write_network to accept a hash of servers

closes #22