new method in server.js