removed dependence on config.json file for better encapuslation