tweaked to use static json files