adding rest client (not working yet)