changed how config.json is accessed