further changes to server.js