updated embed generator