added socket.io debugging