added a support for a config file in json format