improve file copying in wrangler
wip tests