first pass at valgrinding