changed socket.io connection