adding endian_stream