move to index.js for simplicity