In Canada we swear allegiance to a person: The Queen of England. Swearing allegiance to the flag as a symbol of the United States, rather than a monarch, president, or deity, is actually brilliant, IMO.