added purge option