refactored to be consistent with the new redis configuration changes