work with the ObjectId serialize/deserialize