add more archive related code