added in functions and visuals for flags

havnt seen them work, but they should if used