starting to fix embedded documents