removed set_logfile