move config to index.js