fixed parsing and bitfield setting