add log offset modify second memory mode. add common edges search.