upgraded structure for archives and documents to allow sorting