add redis persistence