refactaring ScoreIO