refactor zookeeper task
generalize zookeepr vars