implemented auto scale config.