migration for groups on flags