changed way of connecting to redis in preparation for constructor parameter change