implement conn wrapper