added the ZooKeeper register center and adjust code accordingly