support replace in batch