finished code integration with the hybrid-connect-for-cpp