make the log file grabber better