setlocal does more harm than good here