updates to server.js