tracking down valgrind complaints