update flags, consistent coloring, etc.