final implementation of hazard manager