payload is now decoded but eof is not captured properly