move connect to cluster to own module