add option N to read multiple flows from file