implement legacy file download