use rdz_strdup to avoid unref strdup warning