cpp_ai functions uncompleted..