add two methods in ClientAPI