add error handling for missing repository