adding saving if download is interupted