move config.js to config/index.js