fixes log files