modified tempfilelist to make a new one for each ccd