modify socket.io process