minor tweaks to the credential helper