adds support for removing orphans from index