init for c++ ctp version 2.0