bugfix for issue found by DTF team
common functions for initializing metrics