moved some of the archive handling into core_archive_lib instead of the
master cleanup