fixes to archive.sh