fix some REST calls