try catch scenarios for json.parse are causing node to exit with code 8, trying simple if else now