changed to read from JSON configuration file