import metrics correctly