merge ip validation optimizations