changed the reset to restart the thread instead