more static methods
zhash_foreach is deprecated