new to_mask
hey currently we support a list of flags in to_mask. as we now have ordered flags we may should go with a single flag-value. Everything > or >= than this value gets masked, instead of comparing every value from the list with ==.
with the new flagging concept: to mask on each call this makes more sense IMO..