add: better debug + fix on metric type