added better log processing for visualizations