add metric_fu
WIP: API design ongoing