automatized the file download process