extract zookeeper services gathering into base.js