modified flag warnings and modified externally handled nicely