made logfile work from scanner and chargen