adjustments error checking REST calls