adding needed C++ stuff