changing the way docs are embedded