patch to set primary network settings