fix require and initialization of metrics string