add debug support using valgrind