download file before using it