Minor connection API fixes