added support for mongodb aggregate