fix string allocation errors
improve valgrind output