deleted json_halt to make code complex