debug possible dead lock