refactor; add check-sum to file parser