make it compatible with zookeeper 1.4.0