wrap download files in ifmain