updates in accordance with the latest changes in bson external