Refactor + authenticate also when fetching files.zip and tags