continue converting to the C++ APIs