copys files correctly now