[code] add archive manager