replaced glib function calls to g_strv_length()