update to new validate-loop-locals