replaced rest client gem