another fix for overwritten embed_in_root objects, still need to write test