supporting multiple network modes