updated for glib 2.36