started writing batch_stats script