updated REST client