consolidate many flag tokens into 1 for efficiency