improve mcmake