bash | add some functions for valgrind