retrying repo key recipe