changes to make streamcodec use tuple.hash and not a complex algo.