fixed another small bug with fifo, it now runs the correct number of times specified in the file.