added support for mongodb odm