initial rest client code