made repositories work on cache-repositories instead of cache manager