finished zookeeper's functional