added logfile printing