valgrind improvements