added deadlock warning