improve config file processing & logfile processing