adding flags