fix dependency on http based connection