moved config to top of index.js