capture the progress of the download