fixes issues with valgrind when no default file is used