added module.exports to index.js