fix logfile command