update the download functions