add log and config