add archive mode