handle none level for not warning or critical