[PD] mechanism to process many input/output files automatically