change cluster_nodes from macro to parameter