make bit-vector mode selection more flexible