updated to load json file