changes to server.js