change redis initialization