added more json subfunctions, troubleshooting order