working version with a draft of Flags actions