add keyring and upgrade