changed return on emerg. run to jsonobj