modify socket.io logic