add mm and fix config