support match / host and path replacement