export cpp functions