trying to fix issues with processes that provide input slowly into stdin