archive support for sessions (fixes #5)