updated autoindent switcher