implemented main channel connection