added clustering by ip.