add resource envelope as instance variable to resource builder, and make resource array merge its includes to it