editing template to remove dead hosts