merged to index.js