implement socket.io to push stats
add the caterpillar logger