fixes to the REST service