Make it work with json files in separate dir.