need first line before parsing header
removed advance arg from collectNextLine
split the chunk string into separate variables