wrote file download script