small updates on server.js