expose public API in index.js