added first version of autoscaling