update configuration and index.js