updated script to remove configurations that break horizon