back to using zhash_foreach