revert connect to HTTP, needs more testing