added logfile.