completed zookeeper method.
completed main method.