added logfile with stats