added timer to sm def
simplify order sm
rename order sm
minor mods