update rest client code