adds flags section with gim