alert init better error detection.