Tighten checks here to avoid overriding the default gw with garbage