adding methods for rest client