refactor so document has a reference to a live+dev copy