changed to REST calls