io byteorder for complex, bitarray. some cleanup