remove network specific code from server.js