add log persistence