updated to socket.io 1