working on restclient