adding definition of warning and critical