genericized all input and output filenames