download method rename to downloadFile