moving metrics to separate file