made scoreboard threadsafe