added socket.io and integrated