added ability to quit