update switches