change in DemandPlanning so that it uses the same globals as the other scripts