create ga function for gpg-agent