add a new file to wrap the matched entities