restructured alert service injection