move gpg code