updated index.js export