phase1: add logic to purge trees after maximum lifetime