fix logfile handling