removed some unused gpg functions