giza: examples refactoring, resolution should be depth first