adding check of previous file download