un-break uniqueness check in PE: need to use safe_compare functions