on our way to remove the chart_content.php and its global functions