updated C++ scripts