added valgrind support