write out reports