added horizon switch