declare a tmp file during download