modify code arch and add log