scopedFlag removal and add