finally working. new purge class that resets system