improve logfile