add purge feature