somewhat better embed replace