tweak for socket.io