update posts add duplicate field and add better url replacement matches