removing infinite loop from driver.c streamInput