hide flag_t implementation