replace strdup_local