initial modification to metrics api