configuring ZooKeeper observer