add resource duplication removal to pgp output