add support for scaling