set envelope as instance variable in main contentful object to share with resource builder, and use it in more places