fetching document via REST returns entire document structure when envelope=true