just started scale-in implementation
small fixes
merged with main affinity branch
scale in works