more terminal handling mumbo jumbo