updates to c api