connected to the REST service