improved management of scaleup and scaledown