work with external .json file