can now read from json files