add sti support for by_parent