use g_printerr instead of g_debug