cleanup and chart on socket.io v1.0