refactoruing config.json