fixing just a few errors in RESTclient