added support for documents w/ a single component - not nested