rework flags