updated scripts for embeds