deadlock handling methods