added export to json fxn