init switcher code for github.