added an autoScale flag