needs a log file