added code to redis initializer