fix input and output file names according to new structure