calling dataspaces api from cpp is experimented.