plan to reimplement Flags as an event processor