added support for scaled models