now could read multiple pattern files