update server for robustness, add type of score message