removed error checking in logfile