added smartmax - WIP