modified the get_cluster.pl script