early sketch of CalcPlan
more TODO comments