make initilization in index.js, have a cleaner lib