fix append history. use variable to 3rd party dir.