update ip function
readme