better error reporting if fails to find subnet