added attr function annd warn_critical