cleaned up awk for ip fixup