fixed copy and zip to properly handle metadata.