add some rest client functionality