fixup 'ex' variable used inproperly after refactor
lint fixes