add enum for flags.