require bson from bson_ext.