universal iface checking function