add check / fix for endianness with bottleneck