use parser to find last row end in chunks

I believe this fixes #16 .