some small updates to media embed plugin