small script to automate near field comparisons