added a warning flag