switch mind-cpp to nmf-style