remove debugger
correct state for incomplete header
fix for isEof + helpers
cleanup
packet resen now is different from offset = 0