add logging of cycle in server.js