just to be clear- your suggesting moving locate to index.js (which I am 100% ok with doing) ?