misc fixes; removed json -> use plain text instead