improve and export MongoObject for use by other packages