get rid of C++ in main component