further updates to archive script