modified to automatically check the log version.