fix client API