seems like this ought to be `has_flag?(flag)`