improved gradient url finding