metrics are now calculated locally