refactoring, config.js