cleanup, relating remove_unknowns_generic