refactor code: use json format stored in zookeeper in comet module