change ip reader logic