lswitcher and search encoding