added purge script