improve file copying in wrangler