fix example and multiple instances of client API