fix bugs in archivist and http