add socket.io for realtime logging