strip target_matched, use tempfile=nil instead