c api updated to use char const *