updated the way how MongoModel is extended