code for averaging cruns
new configs