change API to with_embedded_path() instead