is this if block necessary? as it is, this leads to 2 different places where "redis" is hardcoded