main copy file