add log init and restore