working on socket.io connection