fixed the json routing