basic aggregator finished -- needs testing