using json file and atom for global