changed copying of files as .rename does not work with ramdisk