add cpp version, from java, developing
work update