added g_stats