added initial support for mongo aggregations