mainfold