using bson.M to simplify switch