changed update methods for restclient