rewrite of copy logic
Merge branch 'upload-destination-config'