fixed module exports in index.js