modifiy RESTclient