fix bitstring fiddling