changed capsuleContext.envt to capsuleContext.attributes