moved instantiation of exempt_metrics to its proper place