added simple aggregations support