adding backward compatibility to embed snippets.