added merge function for environmentblocks