bunch of fixes later, the sum graph stuff works.