use a dict instead of id,class in game.message