added gpg support