beginning of a great statick deadlock detector