update c api interface