new_mainfile()