another attempt to make hung thread detection work