configurable rest client class;