adding support to embedded documents and object references (relationship)