added some code to write out evidence base analytics