added custom scale support