mainly server.js changes to start supporting deletion