move kind of magic to Flags