fix some things in server.js