added configuration for  persistence