add config option to enable smart scaling