add copy file method