add global aggregation
Merge pull request #231 from vbehar/features/aggs_global

add global aggregation