moved connection logic into connection Ops