introducing the embedxcode uglies

Embed excode Will strip this down once I figure out what is not needed.
osx cruft delete later