switched to index.js