expanded on the centrality code to compute security status