fix client api codegen to work