modifications to basic-server.js