add scoreboard and fixed resume