fix incomplete bson integration