enable env.warning and env.critical