updated RESTservice for testing purposes