added enableScaleDown and enableScaleUp flags