purge error stacking