few scaling bugs, suspect more. much polishing needed.