removed excess functions from server.js