implemented json file loading