updated with new socket.io
fix socket.io bugs, now working