trying to implement socket.io