lots of log file formatting