new & improved metrics: group, group_map, simpler interface
use emplace_t from optional<>