updates to g_fx.c