more work on embedded documents