myip code cleanup