fixed the m2.cpp
recognize the mode and do the option