updates to embed API