fixed logfile usage