moved clusters and failures computation to app controller