get embed code and assorted fixes