prototyping with the metrics api