cleanup of g_admin and g_cmds