add support for nested projections and embeds