fix bugs with compare file
add log file at download path