add mainfile