lib/copy.js