zookeeper api function