rough code - finish sketching out connection facility negotiation