more work on the history summary script but it is not finished