post session 5
correctly detect end of packets