adding ability to stop exploring