change archive logic to be bassed on portico data