connect to cluster automatically