adding packages from cache to index