fixes #2 adding metrics