progress on stats-scripts