more changes around repositories and repository_clones