keep asking for flags until an empty entry