change to absolute path for temp json files. (and add comment)