fixed log file usage