use unsigned for bitflags.