added better regex for log file