bug fix then resolving from parent-child ierarchy. tests added.