rename downloadFile to apiDownload