modes: SML mode support