enhanced handling of input
connection checking method handles multiple nets