refactor bulk download