added threading to json exporter