updated to copy children of documents and sections