smart deadlock