change debuging and json format