debug deadlocks
fix calculateScore