more flexible autoscale