[code] more generic archive menu