added flag for archiving