add cached repository as per Volker's suggestion