using json for config and data; using atom for global