sprout some functions
added --scale option