parse_ip modification, code fixes.