update to lib folder and server.js