moving intermediate files to own dir