refactoring for multi-connection to the doozer or the zookeeper