formatting, use logfile var