clarify some parsing code that valgrind complains about.