added support for pgp