rm unused vars
start to plumb links through
pass main dataset through more sanely
split up absurdly long line
reorder; pass lastyearsdata through
be smarter about last year's data