get flags