adding redis connection handler