moved hazard metadata namedtuple outside