archive path routing function