simple encapsulation mongoc