trying to get go to thread to work more reliably