adding join_cluster function