added gitignore
remapped switcher function