merge with metrics

Close #1