invalid json will kill node, added try catch