added a warn flag for feedback