network switching script