improve use of GLib