read config from json. Many refactoring to prepare multi language support