strip metadata on replace