introduced logging for server.js