fixed metrics api