clean up files and copy new files