automatically calculate_scores from commit 9f746e9bcf61b512feb9f8347af6714d0e74299d