rebuild Mainfest