adding more logic to aggregator.rb
hella new things too much