script for recalculating cached scores