remove entries that are not in the original pkg