properly return logfile id