added better logging to logfile read back