using gpg2 instead of gpg because the latter failed when no agent was used