add http connection handler