modified: download file module for resume download