finished with brute force version of cluster, need to update automatica
test and then the faster version