set smartmax default, change values
fixup TS stuff compilation