updates to server & create routes.js