parser now handles newer packet format with leading packet length