added glib mainloop support