refactored config.js