fixed socket.io issues