add resolve ip method