fix getting history
add log dir to gitignore