added flags instead of updating warning in interrupt