replace fprintf(stderr, with g_warning(