better support for multiple interfaces
change a few "if [ ! -n ... ]" to "if [ -z ... ]"