fixed socket.io integration