reverted threading for safely streaming lines of text