support v1 and v2 of gpg; changed error message