corrections to anvil.verify middleware