add archiving functionality