invoke pgp correctly.