added wordcount and aggregations