swap in archive stream closes #1391 closes #1398