add log and refresh