made LOGFILE a variable